package com.aaa;

import com.aaa.service.BookShopServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext app=new ClassPathXmlApplicationContext("spring.xml");
        BookShopServiceImpl bean = app.getBean(BookShopServiceImpl.class);
        bean.purchase("1001","栗毅");
    }
}
